package com.tencet.entity;

import java.math.BigDecimal;

/**
 * @author Yangjx
 * @version 1.0.0
 * @ClassName SubscriptionCard.java
 * @Description TODO 绑卡功能，输入信息，所有信息无误后，绑卡成功，页面跳转到首页。
 * @createTime 2022年07月20日 15:00
 */
public class SubscriptionCard {
    private Integer id;             //主键自增
    private Integer cardType;       //卡的绑定状态：1已绑定，0未绑定
    private String name;            //姓名
    private String bankCardNumber;  //一类银行卡号
    private String phone;           //一类银行卡的对应预留手机号
    private String payPassword;     //支付密码
    private BigDecimal cardBalance; //卡余额

    public SubscriptionCard() {
    }

    public SubscriptionCard(Integer id, Integer cardType, String name, String bankCardNumber, String phone, String payPassword, BigDecimal cardBalance) {
        this.id = id;
        this.cardType = cardType;
        this.name = name;
        this.bankCardNumber = bankCardNumber;
        this.phone = phone;
        this.payPassword = payPassword;
        this.cardBalance = cardBalance;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCardType() {
        return cardType;
    }

    public void setCardType(Integer cardType) {
        this.cardType = cardType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBankCardNumber() {
        return bankCardNumber;
    }

    public void setBankCardNumber(String bankCardNumber) {
        this.bankCardNumber = bankCardNumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public BigDecimal getCardBalance() {
        return cardBalance;
    }

    public void setCardBalance(BigDecimal cardBalance) {
        this.cardBalance = cardBalance;
    }

    @Override
    public String toString() {
        return "SubscriptionCard{" +
                "id=" + id +
                ", cardType=" + cardType +
                ", name='" + name + '\'' +
                ", bankCardNumber='" + bankCardNumber + '\'' +
                ", phone='" + phone + '\'' +
                ", payPassword='" + payPassword + '\'' +
                ", cardBalance=" + cardBalance +
                '}';
    }
}
